home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #include <vcl\vcl.h>
- #pragma hdrstop
-
- /*
- TCompress V3.0 "Tiny" self-extracting EXE example
- This program uses the same approach (and doInstal unit) as
- does the SELFEXTR.MAK program. Hence, refer to the instructions
- at the top of SELFEXTF.PAS for setup instructions.
-
- Notes:
- 1) Because no form is involved, this program will be
- far *smaller* than SELFEXTR.EXE. The downside is that
- it has no user interaction, although you could use Windows
- MessageBox calls to at least display a confirmation message.
- 2) In order to avoid having the Borland Database Engine linked in,
- (which makes the resulting project much larger than it needs to be)
- be sure to build your library with the COMPONLY.OBJ (renamed
- in placed of COMPRESS.OBJ), per the instructions in COMPRESS.HLP).
- }
- */
- //---------------------------------------------------------------------------
- USERES("selfxsml.res");
- USERES("COMP_RES.res");
- USEUNIT("doinstal.pas"); // Code which actually does the TCompress work (in doInstal.pas)
- //---------------------------------------------------------------------------
- #include "doInstal.hpp" // do we can call the DoInstall procedure ok
-
- #define PROG_NAME "notepad.exe"
- #define README_NAME "readme.txt"
-
- //---------------------------------------------------------------------------
- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
- {
- try
- {
- DoInstall("",PROG_NAME, README_NAME); // into the CURRENT directory!
- }
- catch (Exception &exception)
- {
- Application->ShowException(&exception);
- }
- return 0;
- }
- //---------------------------------------------------------------------------
-